package demo3_8;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : LiBaoxuan
 * @create 2023/5/10 9:17 PM
 */
public class Ostrich extends Bird{

    @Override
    public void fly() {
        System.out.println("我只能在陆地上奔跑");
    }

    public void callOverwriteMethod() {
        super.fly();
    }

    public static void main(String[] args) {
        Ostrich ostrich = new Ostrich();
        ostrich.fly();
    }
}
